<?php
require_once('configure.php'); 
$query = "SELECT DISTINCT(kota) FROM kodepos WHERE kota  LIKE '{$_GET['q']}%' 
AND UPPER(propinsi) ='".urldecode( strtoupper($_GET['propinsi']))."' GROUP BY kota
"; 
$res = my_query($query);
 
while( $rw=my_fetch_array($res) ){
	 echo strtoupper ($rw['kota'] )."\n";
}
exit;